package com.dingwen.spsest.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dingwen.spsest.entity.RoleEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * role mapper
 *
 * @author dingwen
 * 2021.05.18 15:32
 */
@Repository
public interface RoleMapper extends BaseMapper<RoleEntity> {
    /**
     * 根据用户ID查询角色
     *
     * @param userId 用户id
     * @return {@link List<RoleEntity>}
     */
    List<RoleEntity> selectRoleByUserId(@Param("userId") Integer userId);
}
